package com.xycake.service;

import com.xycake.dao.*;
import com.xycake.entity.Cart;
import com.xycake.entity.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class HomeService {

    @Autowired
    private GoodsMapper goodsMapper;

    public List<Goods> selectAllGoods(){
        return goodsMapper.selectAllgoods();
    }

//    public List<Goods> selectAllGoodsImg(Integer delMark) {
//        return goodsMapper.selectAllgoodsImg(Integer delMark);
//    }
    public int selectDelMark() {
        return goodsMapper.selectDelMark();
    }
}
